<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Gremlins: Network::GridPackedMessage&lt; MessageType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Gremlins
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_network.html">Network</a></li><li class="navelem"><a class="el" href="class_network_1_1_grid_packed_message.html">GridPackedMessage</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Network::GridPackedMessage&lt; MessageType &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Wrapper aroung a specified message type. Basic message infos (size, type). Message model must be specified.  
 <a href="class_network_1_1_grid_packed_message.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_grid_packed_message_8h_source.html">GridPackedMessage.h</a>&gt;</code></p>

<p><a href="class_network_1_1_grid_packed_message-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:aa0667e30cd41e0e7cc1d2eed191ceca0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0667e30cd41e0e7cc1d2eed191ceca0"></a>
typedef boost::shared_ptr<br class="typebreak"/>
&lt; MessageType &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>MessagePointer</b></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a39b2187e793cac564538764f57db60e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39b2187e793cac564538764f57db60e8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>GridPackedMessage</b> (MessagePointer msg=MessagePointer())</td></tr>
<tr class="memitem:af7ef862b08b983b25461b629b7aa2bda"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af7ef862b08b983b25461b629b7aa2bda"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#af7ef862b08b983b25461b629b7aa2bda">set_type</a> (int type)</td></tr>
<tr class="memdesc:af7ef862b08b983b25461b629b7aa2bda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the message type (request 0, response 1) <br/></td></tr>
<tr class="memitem:aca8a411ca78a280db3009140cfa57cf4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca8a411ca78a280db3009140cfa57cf4"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#aca8a411ca78a280db3009140cfa57cf4">set_msg</a> (MessagePointer msg)</td></tr>
<tr class="memdesc:aca8a411ca78a280db3009140cfa57cf4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference a message. <br/></td></tr>
<tr class="memitem:ab5fa6d56662106a115ca9e5d89d80c5f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5fa6d56662106a115ca9e5d89d80c5f"></a>
MessagePointer&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#ab5fa6d56662106a115ca9e5d89d80c5f">get_msg</a> ()</td></tr>
<tr class="memdesc:ab5fa6d56662106a115ca9e5d89d80c5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a shared ptr on the message. <br/></td></tr>
<tr class="memitem:a4d9386923be3ee589ddd87964327f8f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d9386923be3ee589ddd87964327f8f2"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#a4d9386923be3ee589ddd87964327f8f2">pack</a> (data_buffer &amp;buf) const </td></tr>
<tr class="memdesc:a4d9386923be3ee589ddd87964327f8f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrap the message. <br/></td></tr>
<tr class="memitem:a29e131e224496efe692626f5c1b638eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29e131e224496efe692626f5c1b638eb"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#a29e131e224496efe692626f5c1b638eb">unpack</a> (const data_buffer &amp;buf)</td></tr>
<tr class="memdesc:a29e131e224496efe692626f5c1b638eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unwrap the message. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a406d9ddb6aebbd50fdd831c57b632c13"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a406d9ddb6aebbd50fdd831c57b632c13"></a>
static unsigned&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_network_1_1_grid_packed_message.html#a406d9ddb6aebbd50fdd831c57b632c13">decode_header</a> (const data_buffer &amp;buf)</td></tr>
<tr class="memdesc:a406d9ddb6aebbd50fdd831c57b632c13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the size of the message. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a48e2573073bf12e8a5ef62671b233d43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a48e2573073bf12e8a5ef62671b233d43"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>messageType_</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class MessageType&gt;<br/>
class Network::GridPackedMessage&lt; MessageType &gt;</h3>

<p>Wrapper aroung a specified message type. Basic message infos (size, type). Message model must be specified. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>gremlins_static/<a class="el" href="_grid_packed_message_8h_source.html">GridPackedMessage.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jul 4 2012 10:52:48 for Gremlins by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
